#ifndef PLUGINMANAGERDIALOG_H
#define PLUGINMANAGERDIALOG_H

#include <QDialog>
#include "../plugin/BasePlugin.h"

namespace Ui {
class PluginManagerDialog;
}

enum ChooseItemType{
    ChooseRoot,
    ChooseItem
};

class PluginManagerDialog : public QDialog
{
    Q_OBJECT
public:
    PluginManagerDialog();
    ~PluginManagerDialog();

    bool ChoosePlugin(const QHash<QString, BasePlugin *> &plugins, QHash<QString, BasePlugin *> &selectplugins);
private slots:
    void on_btn_ok_clicked();

    void on_btn_cancel_clicked();

private:
    Ui::PluginManagerDialog *ui;
    PluginManagerDialog(const PluginManagerDialog&) = delete;
    PluginManagerDialog& operator=(const PluginManagerDialog&) = delete;
};

#endif // PLUGINMANAGERDIALOG_H
